export interface CardSH1Pojo {
  title?: string;
  bgColor?: string;
  shadow_color?: string;
  func?: () => void;
}

export class CardSH1Pojo implements CardSH1Pojo {
  constructor({
    title,
    bgColor,
    shadow_color,
    func,
  }: Partial<CardSH1Pojo> = {}) {
    this.title = title ?? "CardSH1";
    this.bgColor = bgColor ?? "#1b70c5e3"; // #1b70c5e3
    this.shadow_color = shadow_color ?? "#1b70c548";
    this.func =
      func ??
      (() => {
        console.log("testfunc");
      });
  }
}
